﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        testS.SmsWebService smsService = new testS.SmsWebService();
        testS.SmsMessage smsObject = new testS.SmsMessage();
        smsObject.SmsId = string.Empty;
        smsObject.OrderNumber = "test";
        smsObject.CreatedBy = Guid.NewGuid();
        smsObject.SmsContent = "您的积分兑换订单20121203001兑换的商品已发货，快递单号：12121212，快递公司为：申通快递，预计2日后到达，收件人为ccc，收件人联系电话ddd，请注意查收。";
        smsObject.PhoneNumbers = new string[] { "15021204494", "13524827494", "13020208645" };
        testS.QueryObject query = new testS.QueryObject();

        query.PhoneNumber = "2";
        query.OrderNumber = "t";
        query.BeginTime = DateTime.Now.ToShortDateString();
        query.EndTime = DateTime.Now.ToShortDateString();

        testS.SmsMessage[] bbb = smsService.GetSmsLog(query);
        string sss = smsService.SendSMS(smsObject);
    }
}